<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<title>{% block title %}{{ application_name }}{% endblock %}</title>
		<link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
		{% block head %}{% endblock %}
	</head>
	<body {% block bodyattributes %}{% endblock %}>
		{% block header %}
			<div id="header">
				<div class="login">
					{% if user %}
						<span class="item nickname">{{ user.nickname }}</span> |
						<span class="item"><a href="{{ logout_url|escape }}">Sign out</a></span>
					{% else %}
						<span class="item"><a href="{{ login_url|escape }}">Sign in</a></span>
					{% endif %}
				</div>
				<form action="/">
					<div class="title">
							<a href="/">
								<img src="/static/images/vienuolynelio_biblioteka.png" alt="Vienuolynėlio biblioteka"/>
							</a>
							<input type="text" name="paieska" value="{{ paieska }}" class="paieska"/>
							<input type="submit" value="Ieškoti"/>
					</div>
				</form>
			</div>
		{% endblock %}
		<div id="body">{% block body %}{% endblock %}</div>
		{% block footer %}{% endblock %}
	</body>
</html>
